package com.deyang.mycommon.util;

import android.widget.Toast;

import com.deyang.mycommon.application.MyApplication;

import es.dmoral.toasty.Toasty;


/**
 * 弹窗工具 toast
 * Created by Administrator on 2017/3/2 0002.
 */

public class ToastUtil {

    private ToastUtil() {
    }

    public static void showInfo(CharSequence text) {
        Toasty.info(MyApplication.getApplication(), text, Toast.LENGTH_SHORT, false).show();
    }

    public static void showError(CharSequence text) {
        Toasty.error(MyApplication.getApplication(), text, Toast.LENGTH_SHORT, false).show();
    }

    public static void showWarning(CharSequence text) {
        Toasty.warning(MyApplication.getApplication(), text, Toast.LENGTH_SHORT, false).show();
    }
}
